package com.sann.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;

@Data
@AllArgsConstructor
@ToString
@Slf4j
public class Car {
    private Integer id;
    private String brand;
    private Float money;

    public Car(){
        log.info("Car 构造函数被调用......");
    }

    public Car(String brand, Float money){
        log.info("Car 有参构造执行......");
        this.brand = brand;
        this.money = money;
    }

    public void init(){
        log.info("Car init Method 初始化方法被调用......");
    }

    public void destroy(){
        log.info("Car destroy Method 销毁方法被调用......");
    }

}
